package io.kiki.sba.registry.server.metadata.cluster.node;

import io.kiki.sba.registry.common.model.Node;


public class NodeModified<T extends Node> implements NodeEvent<T> {

    private final T oldNode, newNode;

    public NodeModified(T oldNode, T newNode) {
        this.oldNode = oldNode;
        this.newNode = newNode;
    }

    public T getOldNode() {
        return oldNode;
    }

    public T getNewNode() {
        return newNode;
    }
}
